package com.chenyu.service;



import com.chenyu.util.AjaxResult;

import java.util.Map;

/**
 * @author 晴
 * @version 1.0
 * @description:
 * @date 2024/6/18 11:49
 */
public interface IVerifyCodeService {

    /**
    * @Description: 生成图形验证码 返回base64的图片流
    * @Param: [key]
    * @Return: com.chenyu.base.utils.AjaxResult
    * @Author: 晴
    * @Data: 2024/6/18
    */
    AjaxResult getImgCode(String key);

    /**
    * @Description: 获取短信验证码
    * @Param: [params]
    * @Return: com.chenyu.base.utils.AjaxResult
    * @Author: 晴
    * @Data: 2024/6/18
    */
    AjaxResult sendSms(Map<String, String> params);

    /**
    * @Description: 微信登录绑定手机号时获取验证码
    * @Param: [params]
    * @Return: com.chenyu.base.utils.AjaxResult
    * @Author: 晴
    * @Data: 2024/6/20
    */
    AjaxResult bindSms(Map<String, String> params);
}
